package com.lms.collection.queue;

import java.util.concurrent.ConcurrentLinkedDeque;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-06-23 08:00
 * @Description:
 */
public class ConcurrentLinkedDequeDemo {
    public static void main(String[] args) {

        ConcurrentLinkedDeque<Object> deque = new ConcurrentLinkedDeque<>();
        boolean add = deque.add(1);
        deque.push(2);
        boolean offer = deque.offer(3);
        boolean b = deque.offerLast(4);
        Object last = deque.getLast();
        Object poll = deque.poll();
        Object o = deque.pollFirst();
        Object element = deque.element();
        Object pop = deque.pop();
        Object peek = deque.peek();
        Object o1 = deque.peekFirst();
        Object o2 = deque.removeLast();
        int size = deque.size();
    }
}
